package com.sword.controller.system;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class HomeController {
    @RequestMapping("/home/console")
    public String console() {
        return "views/home/console";
    }

    @RequestMapping("/home/homepage1")
    public String one() {
        return "views/home/homepage1";
    }

    @RequestMapping("/home/homepage2")
    public String two() {
        return "views/home/homepage2";
    }

    @ResponseBody
    @RequestMapping("/hello")
    public String hello(){
        return "hello";
    }

    @RequestMapping("/home/datacharts")
    public String datacharts() {
        return "views/home/datacharts";
    }

    @RequestMapping("/home/user")
    public String user() {
        return "views/home/user";
    }

    @RequestMapping("/home/role")
    public String role() {
        return "views/home/role";
    }
}
